
  <tr valign="top">
    <td height="40" align="left" class="dato" background="/images/topHeader.gif" colspan="4">Eventos Recientes</td>
  </tr>
    <tr>
     <td colspan="4" align="center" background="/images/vg.jpg"><span class="subdatos">Información de eventos</span></td>
  </tr>
    <tr><td>&nbsp;</td></tr>


      <tr>
<table width="683">
  <tr align="center">
    <td width="295">&nbsp;</td>
    <td width="492"><table width="492">

    </table></td>
  </tr>
</table>

<MARQUEE behavior="scroll" direction="left" width="90%" onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 5, 0);">

<table width="683">

  	<% for category in @categories %>
	
	
    <td width="295" align="center"><p>
		<% if(category.photo_file_name.blank?)&(category.image.blank?) %>
		<%= image_tag("/images/default.jpg",  :size => "150x100" ) %>
	<% end %>
	<% if(category.photo_file_name.blank?)%>
		<%= image_tag category.image,  :size => "150x100" %>
	<% end %>
	<% if(category.image.blank?)%>
		<%= image_tag category.photo.url,  :size => "150x100" %>
	<% end %>
	</p></td>
    <td width="492"><table width="393">
      <%   @events = Event.find_all_by_category_idf(category.id, :limit => 3)
	  for event in @events %>
      <tr align="center">
        <td width="119"><%= event.eventstart.strftime("%I:%M %p ") %><%= event.eventstart.strftime("%d %b %Y") %></td>
        <td width="262" align = "left"><%= link_to event.name, event,  :class => "navbar" %></td>

      </tr>
    <% end %>
    </table></td>
  <% end %>
</MARQUEE>

<table width="480" border="0" align="center">
  <tr>
    <td><img src="/images/principal/basket.jpg" width="280" height="150" /></td>
	<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
    <td><img src="/images/principal/tenis.jpg" width="280" height="150" /></td>
  </tr>
  <tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr>
  <tr>
    <td><img src="/images/principal/futbol.jpg" width="280" height="150" /></td>
	<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
	<td><img src="/images/principal/beisbol.jpg" width="280" height="150" /></td>
  </tr>
</table>

<table width="480">



